package pwd.allen.construct.bridge;

import pwd.allen.construct.common.IConnection;

/**
 * 桥接实现类，组合了orm框架 和 数据库连接
 *
 * @author lenovo
 * @create 2021-05-20 10:46
 **/
public class MybatisOrm extends AbstractionOrm {

    public MybatisOrm(IConnection connection) {
        super(connection);
    }

    @Override
    public void exec(String host, int port, String dbName) {
        System.out.println("使用mybatis框架");
        connection.pingConnection(host, port, dbName);
    }

}
